package com.GameSpace.CoreAssets;

import android.content.Context;
import android.util.AttributeSet;

public class ToolbarLabelItem extends ToolBarItem {

	public ToolbarLabelItem(Context context) {
		super(context);
	}

	public ToolbarLabelItem(Context context, AttributeSet attrs, int params) {
		super(context, attrs, params); 
	}
	
	private int fontSize;
	private String fontType;
	private int fontColor;
	private String text;
	
	public int getFontSize()
	{
		return this.fontSize;
	}
	public void setFontSize(int size)
	{
		super.setTextSize(size);
		this.fontSize = size;
	}
	public String getFontType()
	{
		return this.fontType;
	}
	public void setFontType(String type)
	{
		this.fontType = type;
	}
	public int getFontColor()
	{
		return this.fontColor;
	}
	
	//gets an R.color value as parameter
	public void setFontColor(int color)
	{
		super.setTextColor(this.getResources().getColor(color));
		this.fontColor = color;
	}
	public String getText()
	{
		return this.text;
	}
	public void setText(String text)
	{
		super.setText(text);
		this.text = text;
	}
}
